﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>你定旅行网-登录</title>
    <link href="../CSS/Public/base.css" rel="stylesheet" />
    <link href="../CSS/UserCenter/Reset.css" rel="stylesheet" />
    <link href="../CSS/UserCenter/login.css" rel="stylesheet" />
    <!--包括jquery.js，jquery-migrate-1.2.1.min.js，yui-min.js，jquery.md5.js，jquery.silder.js querycity.js-->
    <script src="http://res.niding.net/pc/js/nd.group.min.js"></script>

    <script src="../JS/Public/Global.js"></script>

    <!--<script src="/JS/Public/jquery.md5.js"></script>-->
    <script src="../JS/UserCenter/login.js"></script>
    <script src="../Scripts/jquery-1.8.2.min.js"></script>

    <script>
        $(function ()
        {
            $.ajax({
                type: "get",
                url: "/Nav/shownav",
                success: function (data) {
                    $(data).each(function (i, obj) {
                        var div = "<li class='main-active'><a href='" + obj.navurl + "' class='button'>" + obj.navname + "</a></li>";
                        $(".head-nav").append(div);
                    })
                }
            })
            _G.DeleteCookie("_user");
            var backurl = unescape(GetQuery('BackUrl'));
            if (backurl.length > 0)
            {
                $("#btn_GoToBuy").attr("href", unescape(GetQuery('BackUrl')));
            }
            post("base_exitlogin", "", function exitlogin() { });
            var comlogin = new loginClass();
            comlogin.tab(".login-tit>div", ".com-ul-login-con");
            comlogin.comlogin();
            $("#btn_Login").click(function () {
                $("#sp").text("");
                $("#sp1").text("");
                var uname = $("#Login_Name").val();
                var upwd = $("#Login_PWD").val();
                if(uname=="")
                {
                    $("#sp").text("用户不能为空");
                }
                else
                {
                    ///判断用户名存不存在
                    $.ajax({

                        type: "get",
                        url: "/Users/getuname",
                        data: {
                            "uname": uname
                        },
                        success: function (data) {
                            if (data > 0) {
                                $("#sp").text("");
                                if (upwd == "") {
                                    $("#sp1").text("密码不能为空");
                                }
                                else {
                                    $("#sp1").text("");
                                    $.ajax({
                                        type: "get",
                                        url: "/Users/LisetUser",
                                        data: {
                                            "uname": uname,
                                            "upwd": upwd
                                        },
                                        success: function (data) {
                                            if (data > 0) {

                                                location.href = "HtmlPage1.html";
                                            }
                                            else {
                                                $("#sp1").text("密码错误");
                                            }
                                        }
                                    })
                                }

                            }
                            else {
                                $("#sp").text("用户不存在");
                            }
                        }

                    })
                }
               
              
            })
        });
       
    </script>
</head>
<body class="login">
    <!--start header-->

    <div class="header w">
        <div class="fl">
            <div class="nd_logo">
                <a class="icon-header-footer-img" href="/Index.shtml"></a>
            </div>
        </div>
        <div class="header-ad">
            <a href="/Index.shtml"></a>
        </div>
        <!--<div class="fr nd_app">
            <span class="nd_kf"><a href="#">服务中心</a></span>
            <span class="nd_kf">客服热线：400-001-7171</span>
            <span><a class="nd_app_dl" href="#"></a></span>

        </div>-->
        <div class="fr header-nav-service">
            <ul>
                <li class="service-item-app">
                    <i class=" icon-header-footer-img icon-app">
                    </i>
                    <div class="service-app">
                        <dl>
                            <dt>手机扫码快速下载</dt>
                            <dd class="icon-header-footer-img "></dd>
                        </dl>
                    </div>
                </li>
                <li class="service-item-weixin">
                    <i class="icon-header-footer-img icon-weixin"></i>
                    <div class="service-weixin">
                        <dl>
                            <dt>微信号:nidinglvxingwang</dt>
                            <dd class="icon-header-footer-img "></dd>
                        </dl>
                    </div>
                </li>
                <li>
                    <i class="icon-header-footer-img icon-tel">
                    </i><div class="service-tel">
                        <p><a href="/Base/AboutUs/NewsInfo.shtml?id=13">帮助中心</a></p>
                        <p><b>400-001-7171</b></p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div class="headbar">
        <div class="w">
            <ul class="head-nav">
                <!--<li class="main-active"><a href="/">首页</a></li>
                <li class="hotel-active"><a href="/Hotel/">酒店</a></li>
                <li class="flight-active"><a href="/Flight/">机票</a></li>
                <li class="travel-active"><a href="/Travel/">度假</a></li>
                <li class="visa-active"><a href="/Visa/">签证</a></li>
                <li class="train-active"><a href="/Train/">火车票</a></li>-->
                <!--<li class="taxi-active"><a href="#">租车</a></li>
                <li class="ticket-active"><a href="#">火车票</a></li>-->
            </ul>
            <a href="http://old.niding.net" target="_blank" class="go-oldweb">返回旧网站</a>
            <ul id="Header_UserInfo" class="user-operate fr">
                <li>
                    <div class="login-user-operate">

                        <span class="user-name"><a id="my_UserName" href="/UserCenter/UserCenter.shtml">你好</a>|<a href="/UserCenter/login.shtml" id="btn_Head_Exit">退出</a></span>
                        <div class="operate-list">
                            <ul>
                                <li><a href="/UserCenter/UserCenter.shtml"><i class="icon-header-footer-img item-myorder"></i>我的订单</a></li>
                                <li><a href="/UserCenter/UserCenter.shtml?type=flight_order"><i class="icon-header-footer-img item-flightorder"></i>机票订单</a></li>
                                <li><a href="/UserCenter/UserCenter.shtml?type=hotel_order"><i class="icon-header-footer-img item-hotelorder"></i>酒店订单</a></li>
                                <li><a href="/UserCenter/UserCenter.shtml?type=travel_order"><i class="icon-header-footer-img item-travelorder"></i>旅游订单</a></li>
                                <li><a href="/UserCenter/UserCenter.shtml?type=personal_info"><i class="icon-header-footer-img item-mycenter"></i>个人中心</a></li>
                                <li><a href="/UserCenter/UserCenter.shtml?type=collect_hotel"><i class="icon-header-footer-img item-favorite"></i>我的收藏</a></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                    </div>
                </li>

            </ul>

            <ul id="Header_UserLogin" class="user-operate nologin fr">
                <li><a id="btn_Head_UserLogin" href="/UserCenter/login.shtml">登录</a></li>
                <li>|</li>
                <li><a href="/UserCenter/Register.shtml">注册</a></li>
            </ul>
        </div>
    </div>

    <!--end header-->

    <div class="content">
        <div class="content-box">
            <div class="com-login-box">
                <div class="login-tit clearfix">
                    <div class="com-login active">普通登录</div>
                    <div class="ph-login">手机动态码登录</div>
                </div>
                <div class="com-ul-login-con">
                    <ul>
                        <li><span class="label">登录名</span><input id="Login_Name" type="text" placeholder="登录名" /><span id="sp"></span></li>
                        <li>
                            <span class="label">密　码</span><input id="Login_PWD" type="password" placeholder="密码" /><span id="sp1"></span>
                           
                            
                        </li>
                        <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a class="lg-forget-pwd" href="ResetInfo.shtml">忘记密码</a></li>
                        <li>
                            <span class="label"></span>
                            <input id="btn_Login" style="width:100px;height:50px" type="button" value="登录" />
                        </li>
                    </ul>
                </div>
                <div class="com-ul-login-con">
                    <ul>
                        <li><span class="label">手机号</span><input id="Login_Mobile" type="text" placeholder="手机号" /></li>
                        <li>
                            <span class="label">动态码</span><input id="Login_Code" type="text" style="width: 100px;" placeholder="动态码" />
                            <input id="btn_SendCode" class="reSend" type="button" value="获取动态码" />
                            <input id="btn_SendTimer" class="reSend reSendTimer" type="button" value="60秒" disabled="disabled" />
                        </li>
                        <li>
                            <span class="label"></span>
                            <label id="QuickLogin_errMsg" class="lab_errMsg"></label>
                        </li>
                        <li>
                            <span class="label"></span>
                            <input id="btn_QuickLogin" class="submit" type="button" value="登录" />
                        </li>
                    </ul>
                </div>
                <div id="goRegister" class="go-reg">您还没有你定旅行网帐号，<a href="/UserCenter/Register.shtml" class="lg-forget-pwd">免费注册</a></div>
                <a href="/UserCenter/UserCenter.shtml?type=personal_info" id="btn_GoToBuy" class="img-reseve" style="display: none">不登录，直接预订</a>
            </div>
        </div>
    </div>
    <!--start footer-->
    <div class="footer">
        <div class="w">
            <dl>
                <dt>帮助中心</dt>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=13" target="_blank">预订帮助</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=10" target="_blank">常见问题</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=8" target="_blank">用户协议</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=9" target="_blank">出行常识</a></dd>
            </dl>
            <dl>
                <dt>售后服务</dt>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=11" target="_blank">售后政策</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=12" target="_blank">退款说明</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=14" target="_blank">取消订单</a></dd>
                <dd><a href="/NdPay/ReceiptMoney.shtml">在线支付</a></dd>
            </dl>
            <dl>
                <dt>关于我们</dt>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=6" target="_blank">关于你定网</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=2" target="_blank">创始人介绍</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=15" target="_blank">荣誉资质</a></dd>
                <dd><a href="/Base/AboutUs/NewsInfo.shtml?id=3" target="_blank">公司介绍</a></dd>
            </dl>
            <dl>
                <dt>手机快速扫描下载</dt>
                <dd><i class="icon-header-footer-img footer-service  app"></i></dd>
            </dl>
            <dl>
                <dt>你定官方微信</dt>
                <dd><i class="icon-header-footer-img footer-service weixin"></i></dd>
            </dl>
            <dl>
                <dt>你定官方微博</dt>
                <dd><i class="icon-header-footer-img footer-service weibo"></i></dd>
            </dl>
            <dl>
                <dt>联系我们</dt>
                <dd class="f_tel">
                    400-001-7171
                    <br />
                </dd>
            </dl>
        </div>
    </div>
    <!--end footer-->
</body>
</html>
